package com.wz.project.tsjqueue.service.impl;

import com.wz.project.tsjqueue.domain.TsjExecutionQueue;
import com.wz.project.tsjqueue.mapper.TsjExecutionQueueMapper;
import com.wz.project.tsjqueue.service.TsjExecutionQueueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TsjExecutionQueueServiceImpl implements TsjExecutionQueueService {

   @Autowired
   private TsjExecutionQueueMapper tsjExecutionQueueMapper;

   @Override
   public List<TsjExecutionQueue> selectTsjExecutionQueueList(TsjExecutionQueue tsjExecutionQueue) {
      return tsjExecutionQueueMapper.selectTsjExecutionQueueList(tsjExecutionQueue);
   }

   @Override
   public int reloadTask(TsjExecutionQueue queue) {
      queue.setStatus("0");
      return tsjExecutionQueueMapper.reloadTask(queue);
   }

   @Override
   public int deleteTask(TsjExecutionQueue queue) {
      return tsjExecutionQueueMapper.deleteTask(queue);
   }
}
